<?php

class Soul_Request_Http_Filter {

    public function __construct() {

    }

    public function filtrate() {
        $GLOBALS[ORP] = $_REQUEST;
        array_walk_recursive($_GET, array($this, 'filterValue'));
        array_walk_recursive($_POST, array($this, 'filterValue'));
        $_REQUEST = array_merge($_GET, $_POST);
    }

    private function filterValue(&$item, $key) {
    	$item = strip_tags(urldecode($item));
//    	if(!Soul_Util_Enviroment::getMagicQuotesGpc()){
//    		$item = addslashes($item);
//    	}
    }

}